package com.ktm.gecco.crawler.boche.bean;

import java.util.List;

import com.geccocrawler.gecco.annotation.Attr;
import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.annotation.HtmlField;
import com.geccocrawler.gecco.annotation.Image;
import com.geccocrawler.gecco.annotation.Request;
import com.geccocrawler.gecco.annotation.Text;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;

@Gecco(matchUrl = "http://bochewang.com.cn/Vehicle/CheDetail/{pageIndex}", pipelines = { "consolePipeline",
        "bocheCarDetailPipeline" })
public class BocheCarDetail implements HtmlBean {
    /**
	 *
	 */
    private static final long serialVersionUID = 1941368525953030088L;

    @Request
    private HttpRequest request;

    //    /var/data/ktmCrawler/image
//    @Image(download="E:/apache-tomcat-8.0.32-Gecco/webapps/ktmCrawler/image/boche",value = "src")
    @Image(download="/home/ktmCrawler/image/boche",value = "src")
    @HtmlField(cssPath="#imageGallery > li > img")
    private List<String> imageurl;

    @Attr(value = "src")
    @HtmlField(cssPath="#imageGallery > li > img")
    private List<String> image;

    /*
     * 车辆品牌
     */
    // @Text
    // @HtmlField(cssPath =
    // "#w970 > div:nth-child(1) > div:nth-child(1) > span:nth-child(2)")
    private String brand;

    /*
     * 车辆名称 标题
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div:nth-child(12) > div > h1")
    private String carname;

    /*
     * 编号
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div.content > div.left_cont.buy_left > div > div > li:nth-child(2) > font > span:nth-child(2)")
    private String number;

    /*
     * 车辆类型
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div.content > div.left_cont.buy_left > div > div > li:nth-child(6) > span:nth-child(2)")
    private String cartype;

    /*
     * 排量
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div.content > div.left_cont.buy_left > div > div > li:nth-child(8) > span:nth-child(2)")
    private String output;

    /*
     * 转动类型 手动挡 自动挡
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(1) > td:nth-child(2)")
    private String driveType;

    /*
     * 事故类型
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div.content > div.left_cont.buy_left > div > div > li:nth-child(5) > span:nth-child(2)")
    private String accidentType;

    /*
     * 车架号
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div.content > div.left_cont.buy_left > div > div > li:nth-child(9) > span:nth-child(2)")
    private String vin;

    /*
     * 户籍地
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(3) > td:nth-child(2)")
    private String domicile;

    /*
     * 停放地
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div.content > div.left_cont.buy_left > div > div > li:nth-child(3) > span:nth-child(2)")
    private String parkingPlace;

    /*
     * 产证
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(9) > td:nth-child(2)")
    private String productionPermit;

    /*
     * 行驶证
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(10) > td:nth-child(2)")
    private String drivingLicense;

    /*
     * 购置税
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(11) > td:nth-child(2)")
    private String purchaseTax;

    /*
     * 钥匙
     */
    // @Text
    // @HtmlField(cssPath =
    // "#extcon_content > div > table > tbody > tr:nth-child(2) > td:nth-child(6) > span")
    private String carkey;

    /*
     * 新车参考价
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(9) > td:nth-child(2)")
    private double newPrice;

    /*
     * 投保金额
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(14) > td:nth-child(2)")
    private double insuredAmount;

    /*
     * 施救费
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(15) > td:nth-child(2)")
    private double rescueFee;

    /*
     * 综合服务费
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(16) > td:nth-child(2)")
    private double comprehensiveServiceFee;

    /*
     * 联系人
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(17) > td:nth-child(2)")
    private String contacts;

    /*
     * 联系方式
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(18) > td:nth-child(2)")
    private String contactInformation;

    /*
     * 初次登记
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div.content > div.left_cont.buy_left > div > div > li:nth-child(10) > span:nth-child(2)")
    private String initialRegistration;

    /*
     * 年检到期
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(20) > td:nth-child(2)")
    private String annualInspection;

    /*
     * 交强险到期
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div.content > div.left_cont.buy_left > div > div > li:nth-child(15) > span:nth-child(2)")
    private String maturityOfInsurance;

    /*
     * 起始价格
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(22) > td:nth-child(2)")
    private double beginPrice;

    /*
     * 是否拆检
     */
    // @Text
    // @HtmlField(cssPath =
    // "#extcon_content > div > table > tbody > tr:nth-child(3) > td:nth-child(6) > span")
    private String isDismantling;

    /*
     * 是否抵押
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(25) > td:nth-child(2)")
    private String isMortgage;

    /*
     * 车架号是否受损
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(26) > td:nth-child(2)")
    private String isFrameNumberDamaged;

    /*
     * 营运证
     */
    // @Text
    // @HtmlField(cssPath =
    // "body > div.main_w > div.section_w.cardetail > div.sidebar_m > table > tbody > tr:nth-child(27) > td:nth-child(2)")
    private String taxiLicense;

    /*
     * 所属
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div.content > div.left_cont.buy_left > div > div > li:nth-child(17) > span:nth-child(2)")
    private String beLong;

    /*
     * 注意事项
     */
    @Text
    @HtmlField(cssPath = "body > div.content > div.content > div.buy_left_list > div.remark > p:nth-child(2)")
    private String inforMation;

    /*
     * 发动机
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(12) > td:nth-child(2)")
    private String engine;

    /*
     * 变速箱
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(13) > td:nth-child(2)")
    private String transmissionCase;

    /*
     * 仪表台
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(14) > td:nth-child(2)")
    private String instrumentTable;

    /*
     * 控制面板
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(15) > td:nth-child(2)")
    private String controlPanel;

    /*
     * 主气囊
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(16) > td:nth-child(2)")
    private String mainAirBag;

    /*
     * 副气囊
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(17) > td:nth-child(2)")
    private String secondaryAirBag;

    /*
     * ABS系统
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(18) > td:nth-child(2)")
    private String abssystem;

    /*
     * 车身线束
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(19) > td:nth-child(2)")
    private String bodyharness;

    /*
     * 全车电脑板
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(20) > td:nth-child(2)")
    private String computerBoard;

    /*
     * 底盘
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(21) > td:nth-child(2)")
    private String chassis;

    /*
     * 内饰
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(22) > td:nth-child(2)")
    private String interior;

    /*
     * 有无违章
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(23) > td:nth-child(2)")
    private String isviolation;

    /*
     * 行使公里数
     */
    // @Text
    // @HtmlField(cssPath =
    // "#detail > table > tbody > tr:nth-child(8) > td:nth-child(2)")
    private String exerciseKilometer;

    public List<String> getImageurl() {
        return imageurl;
    }

    public void setImageurl(List<String> imageurl) {
        this.imageurl = imageurl;
    }

    public List<String> getImage() {
        return image;
    }

    public void setImage(List<String> image) {
        this.image = image;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getCarname() {
        return carname;
    }

    public void setCarname(String carname) {
        this.carname = carname;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getCartype() {
        return cartype;
    }

    public void setCartype(String cartype) {
        this.cartype = cartype;
    }

    public String getOutput() {
        return output;
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public String getDriveType() {
        return driveType;
    }

    public void setDriveType(String driveType) {
        this.driveType = driveType;
    }

    public String getAccidentType() {
        return accidentType;
    }

    public void setAccidentType(String accidentType) {
        this.accidentType = accidentType;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public String getDomicile() {
        return domicile;
    }

    public void setDomicile(String domicile) {
        this.domicile = domicile;
    }

    public String getParkingPlace() {
        return parkingPlace;
    }

    public void setParkingPlace(String parkingPlace) {
        this.parkingPlace = parkingPlace;
    }

    public String getProductionPermit() {
        return productionPermit;
    }

    public void setProductionPermit(String productionPermit) {
        this.productionPermit = productionPermit;
    }

    public String getDrivingLicense() {
        return drivingLicense;
    }

    public void setDrivingLicense(String drivingLicense) {
        this.drivingLicense = drivingLicense;
    }

    public String getPurchaseTax() {
        return purchaseTax;
    }

    public void setPurchaseTax(String purchaseTax) {
        this.purchaseTax = purchaseTax;
    }

    public String getCarkey() {
        return carkey;
    }

    public void setCarkey(String carkey) {
        this.carkey = carkey;
    }

    public double getNewPrice() {
        return newPrice;
    }

    public void setNewPrice(double newPrice) {
        this.newPrice = newPrice;
    }

    public double getInsuredAmount() {
        return insuredAmount;
    }

    public void setInsuredAmount(double insuredAmount) {
        this.insuredAmount = insuredAmount;
    }

    public double getRescueFee() {
        return rescueFee;
    }

    public void setRescueFee(double rescueFee) {
        this.rescueFee = rescueFee;
    }

    public double getComprehensiveServiceFee() {
        return comprehensiveServiceFee;
    }

    public void setComprehensiveServiceFee(double comprehensiveServiceFee) {
        this.comprehensiveServiceFee = comprehensiveServiceFee;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContactInformation() {
        return contactInformation;
    }

    public void setContactInformation(String contactInformation) {
        this.contactInformation = contactInformation;
    }

    public String getInitialRegistration() {
        return initialRegistration;
    }

    public void setInitialRegistration(String initialRegistration) {
        this.initialRegistration = initialRegistration;
    }

    public String getAnnualInspection() {
        return annualInspection;
    }

    public void setAnnualInspection(String annualInspection) {
        this.annualInspection = annualInspection;
    }

    public String getMaturityOfInsurance() {
        return maturityOfInsurance;
    }

    public void setMaturityOfInsurance(String maturityOfInsurance) {
        this.maturityOfInsurance = maturityOfInsurance;
    }

    public double getBeginPrice() {
        return beginPrice;
    }

    public void setBeginPrice(double beginPrice) {
        this.beginPrice = beginPrice;
    }

    public String getIsDismantling() {
        return isDismantling;
    }

    public void setIsDismantling(String isDismantling) {
        this.isDismantling = isDismantling;
    }

    public String getIsMortgage() {
        return isMortgage;
    }

    public void setIsMortgage(String isMortgage) {
        this.isMortgage = isMortgage;
    }

    public String getIsFrameNumberDamaged() {
        return isFrameNumberDamaged;
    }

    public void setIsFrameNumberDamaged(String isFrameNumberDamaged) {
        this.isFrameNumberDamaged = isFrameNumberDamaged;
    }

    public String getTaxiLicense() {
        return taxiLicense;
    }

    public void setTaxiLicense(String taxiLicense) {
        this.taxiLicense = taxiLicense;
    }

    public String getBeLong() {
        return beLong;
    }

    public void setBeLong(String beLong) {
        this.beLong = beLong;
    }

    public String getInforMation() {
        return inforMation;
    }

    public void setInforMation(String inforMation) {
        this.inforMation = inforMation;
    }

    public String getEngine() {
        return engine;
    }

    public void setEngine(String engine) {
        this.engine = engine;
    }

    public String getTransmissionCase() {
        return transmissionCase;
    }

    public void setTransmissionCase(String transmissionCase) {
        this.transmissionCase = transmissionCase;
    }

    public String getInstrumentTable() {
        return instrumentTable;
    }

    public void setInstrumentTable(String instrumentTable) {
        this.instrumentTable = instrumentTable;
    }

    public String getControlPanel() {
        return controlPanel;
    }

    public void setControlPanel(String controlPanel) {
        this.controlPanel = controlPanel;
    }

    public String getMainAirBag() {
        return mainAirBag;
    }

    public void setMainAirBag(String mainAirBag) {
        this.mainAirBag = mainAirBag;
    }

    public String getSecondaryAirBag() {
        return secondaryAirBag;
    }

    public void setSecondaryAirBag(String secondaryAirBag) {
        this.secondaryAirBag = secondaryAirBag;
    }

    public String getAbssystem() {
        return abssystem;
    }

    public void setAbssystem(String abssystem) {
        this.abssystem = abssystem;
    }

    public String getBodyharness() {
        return bodyharness;
    }

    public void setBodyharness(String bodyharness) {
        this.bodyharness = bodyharness;
    }

    public String getComputerBoard() {
        return computerBoard;
    }

    public void setComputerBoard(String computerBoard) {
        this.computerBoard = computerBoard;
    }

    public String getChassis() {
        return chassis;
    }

    public void setChassis(String chassis) {
        this.chassis = chassis;
    }

    public String getInterior() {
        return interior;
    }

    public void setInterior(String interior) {
        this.interior = interior;
    }

    public String getIsviolation() {
        return isviolation;
    }

    public void setIsviolation(String isviolation) {
        this.isviolation = isviolation;
    }

    public String getExerciseKilometer() {
        return exerciseKilometer;
    }

    public void setExerciseKilometer(String exerciseKilometer) {
        this.exerciseKilometer = exerciseKilometer;
    }

    public HttpRequest getRequest() {
        return request;
    }

    public void setRequest(HttpRequest request) {
        this.request = request;
    }

}
